package org.finesys.common.netty.websocket.constants;

public class HandlerName {

    /**
     * 超时设置:多少秒无数据则触发READER_IDLE事件
     */
    public static final String IDLE_TIMEOUT = "idleTimeout";
    public static final String IDLE_ENVET = "idleEvent";

    /**
     * http解码器:将请求和应答消息解码为HTTP消息
     */
    public static final String HTTP_CODEC = "httpCodec";

    /**
     * http聚合器：将HTTP消息的多个部分合成一条完整的HTTP消息
     */
    public static final String HTTP_AGGREGATOR = "httpAggregator";

    /**
     * websoket协议处理器:处理websoket协议
     */
    public static final String WEBSOCKET_HANDLER = "websocketHandler";

    /**
     * 文本消息处理器:处理文本消息
     */
    public static final String TEXT_WEBSOCKET_HANDLER = "textWebSocketHandler";

    /**
     * 将ByteBuf 编码为 WebsocketFrame
     */
    public static final String BUFF_WEBSOCKET_Encoder = "bytebufWebsocketEncoder";

    /**
     * 将WebSocketFrame 解码为 ByteBuf
     */
    public static final String BUFF_WEBSOCKET_Decoder = "WebsocketFrameDecoder";

    /**
     * stomp编码器
     */
    public static final String STOMP_ENCODER = "stompEncoder";

    /**
     * stomp解码器
     */
    public static final String STOMP_DECODER = "stompDecoder";

    /**
     * stomp聚合器
     */
    public static final String STOMP_AGGREGATOR = "stompAggregator";

    /**
     * stomp统计器
     */
    public static final String STOMP_MERICS = "stompMetrics";

    /**
     * stomp消息业务处理器
     */
    public static final String STOMP_HANDLER = "stompHandler";

}
